<?php
namespace app\modules\film\models;


use app\common\base\ApiModel;
use app\modules\user\behaviors\TimestampBehavior;

class FilmType extends ApiModel{

    public static function tableName(){
        return 'film_type_basic';
    }

    // public function behaviors()
    // {
    //     return [
    //         [
    //             'class' => TimestampBehavior::class,
    //         ]
    //     ];
    // }

    public function rules()
    {
        return [
            [['film_type', 'type_name'], 'required'],
            ['film_type', 'integer'],
            ['type_name', 'string']
        ];
    }


}